const express = require('express')
const user = require('../controller/user/index')
const router = express.Router();

router.post('/login', user.loginhandler); 
router.post('/miniProgramLogin', user.miniProgramLogin); 
router.get('/getUserInfo', user.getUserInfo);
router.get('/getUserInfoById', user.getUserInfoById);
router.post('/updata', user.updataUserInfo);
router.post('/updatePhone', user.updatePhone);
router.post('/updataPassword', user.updataPassword);
router.get('/getUserList', user.getUserList);
router.post('/logoutUser', user.logoutUser);
router.post('/resetPassword', user.resetPassword);
module.exports = router